learn how conflicting Rules are applied.
objectID
in lexicographical order wins.pattern
condition.
For example, consider the query Enchanted forest adventure
, and an index with several rules.
Each rule matches a different pattern in that query.
The rules are ranked by precedence and the exclusion logic behaves as follows:
pattern
conditions aren’t the only cause of conflict.
The filters
condition can cause issues if the intersection of the filters condition with a previous rule isn’t empty.
If this happens, the rule with the lowest precedence is excluded.
objectID
of the promoted results.
Records are promoted in ascending lexicographical order: the smallest objectID
secures the requested slot. Subsequent promotions are shifted down one level in the results.
Using the previous example, “The Lost Shakespeare Diaries” is promoted to the first result because it has the smallest objectID
, followed by “Full Price List”.
objectID
.
A promoted record is considered a hit, even if it doesn’t match the query.
If it matches the query, it’s removed from its original position and inserted at its promoted position, even if the original position was better than the promoted position (in other words, promoted hits can also be “demoted”).
For performance reasons, promoted positions are restricted to the range [0, 300] (zero-based).
Inside the same rule, each promoted record must have a unique promoted position.
If promoted records from two distinct rules are triggered for the same query: